package com.example.spring_boot_demo.mapper;


import com.example.spring_boot_demo.dto.Goods;
import com.example.spring_boot_demo.dto.GoodsRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> findGoods(GoodsRequest goodsRequest);

}
